<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" src="../../../../target/bos/js/angular-route.min.js"></script>
		<script type="text/javascript" src="../../../../target/bos/js/angular.min.js"></script>

		<title></title>
	</head>

	<body>
		<div ng-app="myapp" ng-controller="mycon">
			<div>
				<input type="text" name="name" ng-model="mymodel" />
				<input type="button" value="清空" ng-click="clear()" />
			</div>
			<div>
				HEE,{{mymodel}}
			</div>

		</div>

		<script type="text/javascript">
			var myapp = angular.module("myapp", []);
			myapp.controller("mycon", ["$scope", function($scope) {
				$scope.mymodel = "336636363";

				// 添加点击清空事件
				$scope.clear = function() {
					$scope.mymodel = "";
				};
			}]);
		</script>

	</body>

</html>